package com.managermype.business;

import javax.annotation.PostConstruct;

import org.springframework.stereotype.Service;

import com.google.gson.Gson;

@Service
public class GsonBusiness {

	private Gson gson;

	@PostConstruct
	public void initGsonObject() {
		System.out.println("Iniciando objeto Gson");
		gson = new Gson();
	}

	public String toJsonFormat(Object object) {
		return gson.toJson(object);
	}
}
